/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.spring.servicios;

import com.spring.modelo.DAO.SemestreDAO;
import com.spring.modelo.entidad.Semestre;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 * @author Duber Hugo Troncos Siancas(duberhugo3@hotmail.com)
 */
@Service
public class ServicioSemestre {
    @Autowired
     private SemestreDAO sdao;

    public boolean insertarSemestre(Semestre s) {
        return sdao.insertarSemestre(s);
    }

    public boolean eliminarSemestre(String codigo) {
        return sdao.eliminarSemestre(codigo);
    }

    public Semestre buscarSemestre(String codigo) {
        return sdao.buscarSemestre(codigo);
    }

    public List<Semestre> ListarSemestre() {
        return sdao.ListarSemestre();
    }
    
}
